import sun.security.x509.NameConstraintsExtension;

   import javax.swing.*;
import java.util.Random;

public class test1 {
    public static void main(String[] args) {
        //生成10次1到100之间的随机数
         int[] arr = new int[10];
        Random r = new Random();
         for(int i = 0;i < arr.length ;i++){
             int number = r.nextInt(100) + 1;
             //存储
             arr[i] = number;
         }

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
